#include<iostream>

int main(){
    using namespace std;
    if (1){
        int a = 5;
    }
    a = 6; // Error: 'a' was not declared in this scope
    cout << a << endl; // Error: 'a' was not declared in this scope
}